<?php
?>

<table class="table table-bordered mt10">

    <tr class="tc">
        <td class="box120">ID</td>
        <td class="box120">物料编号</td>
        <td class="box120">名称</td>
        <td class="box120">标签</td>
        <td class="box120">值</td>
        <td class="box120">执行数量</td>
        <td class="box120">单位</td>
        <td class="box120">时间</td>
        <td class="memo">备注</td>
        <td class="memo">状态</td>
    </tr>

    <?php use common\models\c2\statics\WarehouseNoteItemStatus;

    foreach ($model->noteItems as $item): ?>
        <tr class="tc">
            <td class=""><?= $item->id ?></td>
            <td class=""><?= $item->product_sku ?></td>
            <td class=""><?= $item->product_name ?></td>
            <td class=""><?= $item->product_label ?></td>
            <td class=""><?= $item->product_value ?></td>
            <td class=""><?= $item->number ?></td>
            <td class=""><?= !is_null($item->measure) ? $item->measure->name : '' ?></td>
            <td class=""><?= $item->created_at ?></td>
            <td class=""><?= $item->memo ?></td>
            <td class=""><?= WarehouseNoteItemStatus::getLabel($item->status) ?></td>
        </tr>

    <?php endforeach; ?>

</table>

<div class="container-fluid">
    <p>备注：<?= $model->memo ?></p>
</div>
